package request

import (
        "topsdk/util"
    )

type TaobaoOpentradeToolsItemsUnbindRequest struct {
    /*
        商品id     */
    ItemIds  *[]int64 `json:"item_ids" required:"true" `
    /*
        绑定交易开放场景的C端小程序ID     */
    MiniappId  *int64 `json:"miniapp_id" required:"true" `
}

func (s *TaobaoOpentradeToolsItemsUnbindRequest) SetItemIds(v []int64) *TaobaoOpentradeToolsItemsUnbindRequest {
    s.ItemIds = &v
    return s
}
func (s *TaobaoOpentradeToolsItemsUnbindRequest) SetMiniappId(v int64) *TaobaoOpentradeToolsItemsUnbindRequest {
    s.MiniappId = &v
    return s
}

func (req *TaobaoOpentradeToolsItemsUnbindRequest) ToMap() map[string]interface{} {
    paramMap := make(map[string]interface{})
    if(req.ItemIds != nil) {
        paramMap["item_ids"] = util.ConvertBasicList(*req.ItemIds)
    }
    if(req.MiniappId != nil) {
        paramMap["miniapp_id"] = *req.MiniappId
    }
    return paramMap
}

func (req *TaobaoOpentradeToolsItemsUnbindRequest) ToFileMap() map[string]interface{} {
    fileMap := make(map[string]interface{})
    return fileMap
}